package com.iov.car.service.impl;

import java.util.List;

import com.iov.car.domain.TbDictionary;
import com.iov.car.domain.TbFence;
import com.iov.car.mapper.TbFenceMapper;
import com.iov.car.service.ITbFenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 围栏信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-24
 */
@Service
public class TbFenceServiceImpl implements ITbFenceService
{
    @Autowired
    private TbFenceMapper tbFenceMapper;

    /**
     * 查询围栏信息
     * 
     * @param id 围栏信息主键
     * @return 围栏信息
     */
    @Override
    public TbFence selectTbFenceById(Long id)
    {
        return tbFenceMapper.selectTbFenceById(id);
    }

    /**
     * 查询围栏信息列表
     * 
     * @param tbFence 围栏信息
     * @return 围栏信息
     */
    @Override
    public List<TbFence> selectTbFenceList(TbFence tbFence)
    {
        return tbFenceMapper.selectTbFenceList(tbFence);
    }

    /**
     * 新增围栏信息
     * 
     * @param tbFence 围栏信息
     * @return 结果
     */
    @Override
    public int insertTbFence(TbFence tbFence)
    {
        return tbFenceMapper.insertTbFence(tbFence);
    }

    /**
     * 修改围栏信息
     * 
     * @param tbFence 围栏信息
     * @return 结果
     */
    @Override
    public int updateTbFence(TbFence tbFence)
    {
        return tbFenceMapper.updateTbFence(tbFence);
    }

    /**
     * 批量删除围栏信息
     * 
     * @param ids 需要删除的围栏信息主键
     * @return 结果
     */
    @Override
    public int deleteTbFenceByIds(Long[] ids)
    {
        return tbFenceMapper.deleteTbFenceByIds(ids);
    }

    /**
     * 删除围栏信息信息
     * 
     * @param id 围栏信息主键
     * @return 结果
     */
    @Override
    public int deleteTbFenceById(Long id)
    {
        return tbFenceMapper.deleteTbFenceById(id);
    }

    @Override
    public List<TbDictionary> getFence() {
        return tbFenceMapper.getFence();
    }
}
